home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / RIncludes / FinderRegistry.r < prev    next >
Encoding:
Text File  |  1998-08-17  |  16.4 KB  |  381 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        FinderRegistry.r
  3.  
  4.      Contains:    Data types for Finder AppleEvents
  5.  
  6.      Version:    Technology:    Mac OS 8
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __FINDERREGISTRY_R__
  19. #define __FINDERREGISTRY_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #define kAEFinderSuite                     'fndr'
  26. #define kAECleanUp                         'fclu'
  27. #define kAEEject                         'ejct'
  28. #define kAEEmpty                         'empt'
  29. #define kAEErase                         'fera'
  30. #define kAEGestalt                         'gstl'
  31. #define kAEPutAway                         'ptwy'
  32. #define kAERebuildDesktopDB             'rddb'
  33. #define kAESync                         'fupd'
  34. #define kAEInterceptOpen                 'fopn'
  35.  
  36. #define kAEDatabaseSuite                 'DATA'
  37. #define kAESort                         'SORT'
  38.  
  39. #define cInternalFinderObject             'obj '                /*  cReference - used to distinguish objects used inside the Finder only */
  40.                                                             /*  We do not use class cItem from AERegistry.r. Instead our class Item is a cObject //••  BREADCRUMB pmc - WHY?? */
  41.                                                             /*             cItem                                    = 'citm',        // defined in AERegistry.r */
  42.                                                             /*                 cFile                                = 'file',    // defined in AERegistry.r */
  43. #define cAliasFile                         'alia'
  44. #define cApplicationFile                 'appf'
  45. #define cControlPanelFile                 'ccdv'
  46. #define cDeskAccessoryFile                 'dafi'
  47. #define cDocumentFile                     'docf'
  48. #define cFontFile                         'fntf'
  49. #define cSoundFile                         'sndf'
  50. #define cClippingFile                     'clpf'
  51. #define cContainer                         'ctnr'
  52. #define cDesktop                         'cdsk'
  53. #define cSharableContainer                 'sctr'
  54. #define cDisk                             'cdis'
  55. #define cFolder                         'cfol'
  56. #define cSuitcase                         'stcs'
  57. #define cAccessorySuitcase                 'dsut'
  58. #define cFontSuitcase                     'fsut'
  59. #define cTrash                             'ctrs'
  60. #define cDesktopPrinter                 'dskp'
  61. #define cContentSpace                     'dwnd'                /*                 cWindow                                = 'cwin',        // defined in AERegistry.r */
  62. #define cContainerWindow                 'cwnd'
  63. #define cInfoWindow                     'iwnd'
  64. #define cSharingWindow                     'swnd'
  65. #define cStatusWindow                     'qwnd'
  66. #define cClippingWindow                 'lwnd'
  67. #define cPreferencesWindow                 'pwnd'
  68. #define cDTPWindow                         'dtpw'
  69. #define cProcess                         'prcs'
  70. #define cAccessoryProcess                 'pcda'
  71. #define cApplicationProcess             'pcap'
  72. #define cGroup                             'sgrp'
  73. #define cUser                             'cuse'                /*             cApplication                            = 'capp',        // defined in AERegistry.r */
  74. #define cSharingPrivileges                 'priv'
  75. #define cPreferences                     'cprf'
  76. #define cLabel                             'clbl'                /*  For use by viewer search engines: */
  77. #define cOnlineDisk                     'cods'
  78. #define cOnlineLocalDisk                 'clds'
  79. #define cOnlineRemoteDisk                 'crds'                /*  Miscellaneous class definitions */
  80. #define cEntireContents                 'ects'                /* •• BREADCRUMB  pmc - also defined in EntireContents.h */
  81. #define cIconFamily                     'ifam'
  82.  
  83.                                                             /*     pBounds                                    = 'pbnd',            // defined in AERegistry.r */
  84. #define pComment                         'comt'
  85. #define pContainer                         'ctnr'
  86. #define pContentSpace                     'dwnd'
  87. #define pCreationDateOld                 'crtd'                /*  to support pre-Finder 8 scripts */
  88. #define pCreationDate                     'ascd'                /*  from File Commands OSAX */
  89. #define pDescription                     'dscr'
  90. #define pDisk                             'cdis'
  91. #define pFolderOld                         'cfol'                /*  to support pre-Finder 8 scripts */
  92. #define pFolder                         'asdr'                /*  from File Commands OSAX */
  93. #define pIconBitmap                     'iimg'                /*     pID                                        = 'ID  ',            // defined in AERegistry.r */
  94. #define pInfoWindow                     'iwnd'
  95. #define pKind                             'kind'
  96. #define pLabelIndex                     'labi'
  97. #define pModificationDateOld             'modd'                /*  to support pre-Finder 8 scripts */
  98. #define pModificationDate                 'asmo'                /*  from File Commands OSAX */
  99.                                                             /*     pName                                    = 'pnam',            // defined in AERegistry.r */
  100. #define pPhysicalSize                     'phys'
  101. #define pPosition                         'posn'
  102. #define pIsSelected                     'issl'
  103. #define pSize                             'ptsz'                /*  pPointSize defined in AERegistry.r */
  104. #define pWindow                         'cwin'
  105. #define pPreferencesWindow                 'pwnd'
  106.  
  107. #define pFileCreator                     'fcrt'
  108. #define pFileType                         'asty'                /*  from File Commands OSAX */
  109. #define pFileTypeOld                     'fitp'                /*  to support pre-Finder 8 scripts */
  110. #define pIsLocked                         'aslk'                /*  from File Commands OSAX */
  111. #define pIsLockedOld                     'islk'                /*  to support pre-Finder 8 scripts */
  112.                                                             /*     pIsStationeryPad                        = 'pspd',            // defined in AERegistry.r                             */
  113.                                                             /*     pVersion                                = 'vers',            // defined in AERegistry.r */
  114. #define pProductVersion                 'ver2'
  115.  
  116. #define pOriginalItem                     'orig'
  117. #define pMinAppPartition                 'mprt'
  118. #define pAppPartition                     'appt'
  119. #define pSuggestedAppPartition             'sprt'
  120. #define pIsScriptable                     'isab'
  121.  
  122. #define pShowFolderSize                 'sfsz'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  123. #define pShowComment                     'scom'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  124. #define pShowDate                         'sdat'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  125. #define pShowCreationDate                 'scda'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  126. #define pShowKind                         'sknd'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  127. #define pShowLabel                         'slbl'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  128. #define pShowSize                         'ssiz'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  129. #define pShowVersion                     'svrs'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  130. #define pSortDirection                     'sord'
  131. #define pShowDiskInfo                     'sdin'                /*  Always on in Finder 8.0 HIS */
  132. #define pListViewIconSize                 'lvis'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  133. #define pGridIcons                         'fgrd'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  134. #define pStaggerIcons                     'fstg'                /*  No longer part of the Finder 8.0 HIS */
  135. #define pViewFont                         'vfnt'
  136. #define pViewFontSize                     'vfsz'
  137.  
  138. #define pCompletelyExpanded             'pexc'
  139. #define pContainerWindow                 'cwnd'
  140. #define pEntireContents                 'ects'
  141. #define pExpandable                     'pexa'
  142. #define pExpanded                         'pexp'
  143. #define pPreviousView                     'svew'                /*     pSelection                                = 'sele',        // defined in AERegistry.r */
  144. #define pView                             'pvew'
  145. #define pIconSize                         'lvis'                /*  defined above */
  146. #define pKeepArranged                     'arrg'
  147. #define pKeepArrangedBy                 'arby'
  148.  
  149. #define pStartupDisk                     'sdsk'
  150. #define pTrash                             'trsh'                /*  NOTE can't use cTrash     */
  151.  
  152. #define pOwner                             'sown'
  153. #define pOwnerPrivileges                 'ownr'
  154. #define pGroup                             'sgrp'
  155. #define pGroupPrivileges                 'gppr'
  156. #define pGuestPrivileges                 'gstp'
  157. #define pArePrivilegesInherited         'iprv'
  158. #define pExported                         'sexp'
  159. #define pMounted                         'smou'
  160. #define pSharingProtection                 'spro'
  161. #define pSharing                         'shar'
  162. #define pSharingWindow                     'swnd'
  163.  
  164. #define pCapacity                         'capa'
  165. #define pEjectable                         'isej'
  166. #define pFreeSpace                         'frsp'
  167. #define pLocal                             'isrv'
  168. #define pIsStartup                         'istd'
  169.  
  170. #define pWarnOnEmpty                     'warn'
  171.                                                             /*     pBounds                                    = 'pbnd',        // defined in AERegistry.r */
  172.                                                             /*     pHasCloseBox                            = 'hclb',        // defined in AERegistry.r */
  173.                                                             /*     pIsFloating                                = 'isfl',        // defined in AERegistry.r */
  174.                                                             /*     pIndex                                    = 'pidx',        // defined in AERegistry.r */
  175.                                                             /*     pIsModal                                = 'pmod',        // defined in AERegistry.r */
  176.                                                             /*     pPosition                                = 'posn',        // defined above */
  177.                                                             /*     pIsResizable                            = 'prsz',        // defined in AERegistry.r */
  178.                                                             /*     pHasTitleBar                            = 'ptit',        // defined in AERegistry.r */
  179.                                                             /*     pVisible                                = 'pvis',        // defined in AERegistry.r */
  180.                                                             /*     pIsZoomable                                = 'iszm',        // defined in AERegistry.r */
  181.                                                             /*     pIsZoomed                                = 'pzum',        // defined in AERegistry.r */
  182. #define pIsZoomedFull                     'zumf'
  183. #define pIsPopup                         'drwr'
  184. #define pIsPulledOpen                     'pull'                /*  only applies to popup windows */
  185. #define pIsCollapsed                     'wshd'                /*  only applies to normal windows */
  186.  
  187. #define pObject                         'cobj'
  188. #define pSharableContainer                 'sctr'
  189. #define pFileShareOn                     'fshr'
  190. #define pFileShareStartingUp             'fsup'
  191. #define pProgramLinkingOn                 'iac '
  192.  
  193.                                                             /*     pShowFolderSize                            = 'sfsz',            // defined above for Views CP */
  194.                                                             /*     pShowComment                            = 'scom',            // defined above for Views CP */
  195. #define ShowModificationDate             'sdat'                /*  pShowDate defined above for Views CP */
  196.                                                             /*     pShowKind                                = 'sknd',            // defined above for Views CP */
  197.                                                             /*     pShowLabel                                = 'slbl',            // defined above for Views CP */
  198.                                                             /*     pShowSize                                = 'ssiz',            // defined above for Views CP */
  199.                                                             /*     pShowVersion                            = 'svrs',            // defined above for Views CP */
  200.                                                             /*     pShowCreationDate                        = 'scda',            // Removed from Finder 8.0 HIS */
  201.                                                             /*     pShowFileType                            = 'sfty',            // Removed from Finder 8.0 HIS */
  202.                                                             /*     pShowFileCreator                        = 'sfcr',            // Removed from Finder 8.0 HIS */
  203.                                                             /*     pListViewIconSize                        = 'lvis',            // defined above for Views CP */
  204.                                                             /*     pGridIcons                                = 'fgrd',            // defined above for Views CP */
  205.                                                             /*     pStaggerIcons                            = 'fstg',            // defined above for Views CP */
  206.                                                             /*     pViewFont                                = 'vfnt',            // defined above for Views CP */
  207.                                                             /*     pViewFontSize                            = 'vfsz',            // defined above for Views CP */
  208. #define pUseRelativeDate                 'urdt'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  209. #define pDelayBeforeSpringing             'dela'
  210. #define pSpringOpenFolders                 'sprg'
  211. #define pUseShortMenus                     'usme'
  212. #define pUseWideGrid                     'uswg'
  213. #define pLabel1                         'lbl1'
  214. #define pLabel2                         'lbl2'
  215. #define pLabel3                         'lbl3'
  216. #define pLabel4                         'lbl4'
  217. #define pLabel5                         'lbl5'
  218. #define pLabel6                         'lbl6'
  219. #define pLabel7                         'lbl7'                /*     pObject                                    = cObject            // defined above */
  220.  
  221.                                                             /*     pName                                    = 'pnam',            // defined in AERegistry.r */
  222. #define pFile                             'file'                /*     pCreatorType                            = 'fcrt',            // defined above */
  223.                                                             /*     pFileType                                = 'asty',            // defined above */
  224.                                                             /*     pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r */
  225.                                                             /*     pAppPartition                            = 'appt',            // defined above */
  226. #define pPartitionSpaceUsed             'pusd'                /*     pIsScriptable                            = 'isab',            // defined in AERegistry.r */
  227.                                                             /*     pVisible                                = 'pvis'            // defined in AERegistry.r */
  228. #define pLocalAndRemoteEvents             'revt'
  229.  
  230. #define pDeskAccessoryFile                 'dafi'
  231. #define pApplicationFile                 'appf'
  232.                                                             /*     pBounds */
  233.                                                             /*     pIconBitmap */
  234.                                                             /*     pLabelIndex */
  235.                                                             /*     pName */
  236.                                                             /*     pPosition */
  237.                                                             /*     pWindow                                    = cWindow,            // defined above */
  238. #define pCanConnect                     'ccon'
  239. #define pCanChangePassword                 'ccpw'
  240. #define pCanDoProgramLinking             'ciac'
  241. #define pIsOwner                         'isow'
  242. #define pARADialIn                         'arad'
  243. #define pShouldCallBack                 'calb'
  244. #define pCallBackNumber                 'cbnm'
  245.  
  246. #define pAboutMacintosh                 'abbx'
  247. #define pAppleMenuItemsFolder             'amnu'                /*  kAppleMenuFolderType */
  248.                                                             /*     pClipboard                                = 'pcli',            // defined in AERegistry.r */
  249. #define pControlPanelsFolder             'ctrl'                /*  kControlPanelFolderType */
  250. #define pDesktop                         'desk'                /*  kDesktopFolderType */
  251. #define pExtensionsFolder                 'extn'                /*  kExtensionFolderType */
  252.                                                             /*     pFileShareOn                            = 'fshr',            // defined above */
  253. #define pFinderPreferences                 'pfrp'
  254. #define pFontsFolder                     'ffnt'                /*     pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r */
  255.                                                             /*     pInsertionLoc                            = 'pins',            // defined in AERegistry.r */
  256. #define pLargestFreeBlock                 'mfre'
  257. #define pPreferencesFolder                 'pref'                /*  kPreferencesFolderType */
  258.                                                             /*     pProductVersion                            = 'ver2',            // defined above */
  259.                                                             /*     pUserSelection                            = 'pusl',            // defined in AERegistry.r */
  260.                                                             /*     pFileShareStartingUp                    = 'fsup',            // defined above */
  261. #define pShortCuts                         'scut'
  262. #define pShutdownFolder                 'shdf'
  263. #define pStartupItemsFolder             'strt'                /*  kStartupFolderType */
  264. #define pSystemFolder                     'macs'                /*  kSystemFolderType */
  265. #define pTemporaryFolder                 'temp'                /*  kTemporaryFolderType */
  266.                                                             /*     pVersion                                = 'vers',            // defined in AERegistry.r */
  267. #define pViewPreferences                 'pvwp'                /*     pVisible                                = 'pvis',            // defined in AERegistry.r */
  268. #define pStartingUp                     'awak'                /*  private property to tell whether the Finder is fully up and running */
  269.  
  270. #define pSeeFiles                         'prvr'
  271. #define pSeeFolders                     'prvs'
  272. #define pMakeChanges                     'prvw'
  273.  
  274. #define pSmallIcon                         'smic'
  275. #define pSmallButton                     'smbu'
  276. #define pLargeButton                     'lgbu'
  277. #define pGrid                             'grid'
  278.  
  279. #define enumViewBy                         'vwby'
  280. #define enumGestalt                     'gsen'
  281. #define enumConflicts                     'cflc'
  282. #define enumExistingItems                 'exsi'
  283. #define enumOlderItems                     'oldr'
  284.  
  285. #define enumDate                         'enda'
  286. #define enumAnyDate                     'anyd'
  287. #define enumToday                         'tday'
  288. #define enumYesterday                     'yday'
  289. #define enumThisWeek                     'twek'
  290. #define enumLastWeek                     'lwek'
  291. #define enumThisMonth                     'tmon'
  292. #define enumLastMonth                     'lmon'
  293. #define enumThisYear                     'tyer'
  294. #define enumLastYear                     'lyer'
  295. #define enumBeforeDate                     'bfdt'
  296. #define enumAfterDate                     'afdt'
  297. #define enumBetweenDate                 'btdt'
  298. #define enumOnDate                         'ondt'
  299.  
  300. #define enumAllDocuments                 'alld'
  301. #define enumFolders                     'fold'
  302. #define enumAliases                     'alia'
  303. #define enumStationery                     'stat'
  304.  
  305. #define enumWhere                         'wher'
  306. #define enumAllLocalDisks                 'aldk'
  307. #define enumAllRemoteDisks                 'ardk'
  308. #define enumAllDisks                     'alld'
  309. #define enumAllOpenFolders                 'aofo'
  310.  
  311. #define enumIconSize                     'isiz'
  312. #define enumSmallIconSize                 'smic'
  313. #define enumMiniIconSize                 'miic'
  314. #define enumLargeIconSize                 'lgic'
  315.  
  316. #define enumSortDirection                 'sodr'
  317. #define enumSortDirectionNormal         'snrm'
  318. #define enumSortDirectionReverse         'srvs'
  319.  
  320. #define typeIconFamily                     'ifam'                /*  An AEList of typeIconAndMask, type8BitIcon, & c. */
  321. #define typeIconAndMask                 'ICN#'
  322. #define type8BitIcon                     'icl8'
  323. #define type4BitIcon                     'icl4'
  324. #define typeSmallIconAndMask             'ics#'
  325. #define typeSmall8BitIcon                 'ics8'
  326. #define typeSmall4BitIcon                 'ics4'
  327. #define typeRelativeTime                 'rtim'
  328. #define typeConceptualTime                 'timc'
  329.  
  330. #define keyIconAndMask                     'ICN#'
  331. #define key8BitIcon                     'icl8'
  332. #define key4BitIcon                     'icl4'
  333. #define keySmallIconAndMask             'ics#'
  334. #define keySmall8BitIcon                 'ics8'
  335. #define keySmall4BitIcon                 'ics4'
  336. #define keyAEUsing                         'usin'
  337. #define keyAEReplacing                     'alrp'
  338. #define keyAENoAutoRouting                 'rout'
  339. #define keyLocalPositionList             'mvpl'
  340. #define keyGlobalPositionList             'mvpg'
  341.  
  342. #define keyASPrepositionHas             'has '
  343. #define keyAll                             'kyal'
  344. #define keyOldFinderItems                 'fsel'
  345.  
  346. #define formAlias                         'alis'
  347. #define formCreator                     'fcrt'
  348.  
  349. #define errFinderIsBusy                 (-15260)
  350. #define errFinderWindowNotOpen             (-15261)
  351. #define errFinderCannotPutAway             (-15262)
  352. #define errFinderWindowMustBeIconView     (-15263)            /*  RequireWindowInIconView */
  353. #define errFinderWindowMustBeListView     (-15264)            /*  RequireWindowInListView */
  354. #define errFinderCantMoveToDestination     (-15265)
  355. #define errFinderCantMoveSource         (-15266)
  356. #define errFinderCantOverwrite             (-15267)
  357. #define errFinderIncestuousMove         (-15268)            /*  Could just use errFinderCantMoveSource */
  358. #define errFinderCantMoveToAncestor     (-15269)            /*  Could also use errFinderCantMoveSource */
  359. #define errFinderCantUseTrashedItems     (-15270)
  360. #define errFinderItemAlreadyInDest         (-15271)            /*  Move from folder A to folder A */
  361. #define errFinderUnknownUser             (-15272)            /*  Includes unknown group */
  362. #define errFinderSharePointsCantInherit  (-15273)
  363. #define errFinderWindowWrongType         (-15274)
  364. #define errFinderPropertyNowWindowBased  (-15275)
  365. #define errFinderCorruptOpenFolderList     (-15276)
  366. #define errFinderNoInvisibleFiles         (-15277)
  367. #define errFinderBoundsWrong             (-15278)
  368. #define errAEValueOutOfRange             (-15279)
  369. #define errFinderPropertyDoesNotApply     (-15280)
  370. #define errFinderFileSharingMustBeOn     (-15281)
  371. #define errFinderMustBeActive             (-15282)
  372. #define errFinderVolumeNotFound         (-15283)            /*  more descriptive than what we get with nsvErr */
  373. #define errFinderLockedItemsInTrash     (-15284)            /*  there are some locked items in the trash */
  374. #define errFinderOnlyLockedItemsInTrash  (-15285)            /*  all the items (except folders) in the trash are locked */
  375. #define errFinderProgramLinkingMustBeOn  (-15286)
  376. #define errFinderLastReserved             (-15379)
  377.  
  378.  
  379. #endif /* __FINDERREGISTRY_R__ */
  380.  
  381.